const pkg = require('./package')

module.exports = {



  mode: 'universal',

  /*
   ** Headers of the page
   */
  head: {
    title: pkg.name,
    meta: [{
        charset: 'utf-8'
      },
      {
        name: 'viewport',
        content: 'width=device-width, initial-scale=1'
      },
      {
        hid: 'description',
        name: 'description',
        content: pkg.description
      }
    ],
    link: [{
      rel: 'icon',
      type: 'image/x-icon',
      href: '/favicon.ico'
    }]
  },

  /*
   ** Customize the progress-bar color
   */
  loading: {
    color: '#fff'
  },

  /*
   ** Global CSS
   */
  css: [
    'mint-ui/lib/style.css',
  ],

  /*
   ** Plugins to load before mounting the App
   */
  plugins: [
    {
      src: 'amfe-flexible',
      ssr: false
    },
    {
      src: '~plugins/mint-ui'
    },
    {
      src: '~plugins/index.js',
      ssr: false
    },
    {
      src: '~plugins/axios.js'
    }
  ],

  /*
   ** Nuxt.js modules
   */
  modules: [
    
  ],

  /*
   ** Build configuration
   */
  build: {
    /*
     ** You can extend webpack config here
     */
    postcss: [
      require('postcss-px2rem')({
        remUnit: 75
      })
    ],
    extend(config, ctx) {

    },
    vendor: ['mint-ui', 'axios', 'fastclick']
  } 
}
